#include "address.h"

Address::Address(QObject *parent) : ORMObject(parent)
{
    setTableName("addresses");
}

QString Address::street() const
{
    return property("street").toString();
}

void Address::setStreet(const QString &street)
{
    setProperty("street", street);
}

QString Address::city() const
{
    return property("city").toString();
}

void Address::setCity(const QString &city)
{
    setProperty("city", city);
}

QString Address::country() const
{
    return property("country").toString();
}

void Address::setCountry(const QString &country)
{
    setProperty("country", country);
}

int Address::employeeId() const
{
    return property("employee_id").toInt();
}

void Address::setEmployeeId(int employeeId)
{
    setProperty("employee_id", employeeId);
}    